package cn.campus;

public class TestOrder {
    public static void main(String[] args) throws InterruptedException {
        // 打印初始下一个ID
        System.out.println("初始下一个即将分配的ID: " + Order.getNextId());

        // 连续创建3个订单
        Order o1 = new Order("奶茶", 12.5, "A5-306");
        Order o2 = new Order("汉堡", 18.0, "B2-102");
        Order o3 = new Order("薯条", 9.5, "C3-205");

        // 打印订单信息
        System.out.println("订单1信息:");
        System.out.println(o1);
        System.out.println("订单2信息:");
        System.out.println(o2);
        System.out.println("订单3信息:");
        System.out.println(o3);

        // 打印最后下一个即将分配的ID
        System.out.println("最后下一个即将分配的ID: " + Order.getNextId());
    }
}